package com.xunk.equipment.mapper;

import com.xunk.equipment.api.domain.MessageNotificationDO;
import com.xunk.equipment.domain.HomeDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ProjectName: xunk
 * @Package: com.xunk.equipment.mapper
 * @ClassName: HomeMapper
 * @Author: yangwendong
 * @Description:
 * @Date: 2021/3/30 10:02
 * @Version: 1.0
 */
public interface MessageMapper {
    int insertMessageNotifications(@Param("list") List<MessageNotificationDO> list);

    List<MessageNotificationDO> listMessageNotifications(@Param("userId") Long userId, @Param("type") Integer type);

    int readMessageNotification(@Param("userId") Long userId, @Param("id") Long id, @Param("type") Integer type);

    Integer countUnreadMessage(@Param("userId") Long userId, @Param("type") Integer type);
}
